<?php
class User extends AppModel {
	var $name = 'User';
	var $displayField = 'email';
	var $validate = array(
		'email' => array(
			'validEmail' => array(
				'rule' => 'email',
				'message' => 'Please enter a valid email address.'
			),
			'isUnique' => array(
				'rule' => 'isUnique',
				'message' => 'A user with this email address is already registered.'
			),
		),
	);
	
	var $hasMany = 'Order';

}
?>